#include <bits/stdc++.h>
#define sc(x) scanf("%d", &(x))
#define pr(x) printf("%lld\n", (x))
#define rep(i, l, r) for (int i = l; i <= r; ++i)
using namespace std;
typedef long long ll;
const int N = 1e3 + 7;
const int mod = 1e9 + 7;
int n, a[N], d[N];
struct node {// link style
    int val;
    node *L, *R;
};
void add(int x, node& fa, int dep) {}
signed main() {
    memset(d, 0, sizeof d);
    sc(n);
    rep(i, 1, n) sc(a[i]);
    node rt;
    rt.val = a[1];
    return 0;
}